<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%--JSP头部复用--%>
<jsp:include page="common/head.jsp" flush="true"></jsp:include>

<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
    <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
        <form action="/updateProvider?id=${provider.id}" method="post">
            <div class="form-group">
                <label for="proCode">供应商编码</label>
                <input type="text" class="form-control" id="proCode" name="proCode" aria-describedby="emailHelp"  style="width: 210%" value="${provider.proCode}" required>
            </div>
            <div class="form-group">
                <label for="proName">供应商名称</label>
                <input type="text" class="form-control" id="proName" name="proName" aria-describedby="emailHelp"  style="width: 210%" value="${provider.proName}" required>
            </div>
            <div class="form-group">
                <label for="proDesc">供应商详细描述</label>
                <input type="text" class="form-control" id="proDesc" name="proDesc" aria-describedby="emailHelp"  style="width: 210%" value="${provider.proDesc}" required>
            </div>
            <div class="form-group">
                <label for="proContact">供应商联系人</label>
                <input type="text" class="form-control" id="proContact" name="proContact" aria-describedby="emailHelp"  style="width: 210%" value="${provider.proContact}" required>
            </div>
            <div class="form-group">
                <label for="proPhone">供应商联系电话</label>
                <input type="text" class="form-control" id="proPhone" name="proPhone" aria-describedby="emailHelp"  style="width: 210%" value="${provider.proPhone}" required>
            </div>
            <div class="form-group">
                <label for="proAddress">供应商地址</label>
                <input type="text" class="form-control" id="proAddress" name="proAddress" aria-describedby="emailHelp"  style="width: 210%" value="${provider.proAddress}" required>
            </div>
            <div class="form-group">
                <label for="proFax">供应商传真</label>
                <input type="text" class="form-control" id="proFax" name="proFax" aria-describedby="emailHelp"  style="width: 210%" value="${provider.proFax}" required>
            </div>

            <br>
            <button type="submit" class="btn btn-primary">确认修改</button>
            <a type="button" class="btn btn-warning" href="/providerList">放弃修改</a>
        </form>
    </div>
</main>
</div>
</div>
</body>
</html>
